import axios from "@/api/http";
// @ts-ignore
import qs from 'qs'

const list = (params: any = {}) => {
    return axios.post('/server/hospital/list', params)
}

const create = (params: any = {}) => {
    return axios.post('/server/hospital/create', params)
}
const update = (params: any = {}) => {
    return axios.post('/server/hospital/update', params)
}
const removeById = (params: any = {}) => {
    return axios.post('/server/hospital/removeById', qs.stringify(params))
}
export default {
    list,
    create,
    update,
    removeById
}
